package com.xyzq.simpson.apm.web.enums;

public enum TypeEnum {

    ALL(0, "ALL"),
    HTTP_EXECUTE(1, "HTTP_EXECUTE"),
    HTTP_INVOKE(2, "HTTP_INVOKE"),
    RPC_EXECUTE(3, "RPC_EXECUTE"),
    RPC_INVOKE(4, "RPC_INVOKE"),
    SQL(5, "SQL"),
    CACHE(6, "CACHE"),
    LOG(7, "LOG"),
    EXCEPTION(8, "EXCEPTION");

    TypeEnum(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    private int code;

    private String desc;

    public int getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
